/*---------------------------------------

	Stickypaper 
	Sample script 

	html\[h̃eXg
	XNvgɂ錋ʕ\b`ɂ@\łB


[Memo Object]
PROPERTY
 *text		displayed text	(read/write)
 *title		title text	(read/write)	(v1.1+) ^Cg
 *width,hwight	memo size	(read/write)
 *left,top	memo position	(read/write)


METHOD
 *ShowAsText(Filename)	display 'Filename' as html mode	(v1.1+) [Jɂhtmlt@C\܂B
 *ShowAsText()		change to normal mode		(v1.1+) ʂ̃[hɂǂ܂B
 


---------------------------------------*/


Memo.width=190;
Memo.height=220;


Memo.title="title ^CgݒeXg";
Memo.text="loading...\n";
Memo.ShowAsText();	//ʂ̃[h

doEvents();


sleep(1000);




var outhtml = new Strings;

  outhtml.add("<html><head><meta http-equiv='Content-Type' content='text/html; charset=shift_jis'>\n</head>");
  outhtml.add('<body link="#0033cc" text="#666666"><basefont size=2 face="lr oSVbN">');



  outhtml.add('<p style="font-size:9pt;">ȈՂHTML\[hłB<br>css͎g܂B</p>');


  outhtml.add('<ul><li>html list test1</li><li><strong><font color=maroon>{</font></strong>eXgQ</li></ul>');


  outhtml.add('<p><img src="sample.gif"> 摜\eXg<br>iXNvĝKw[głBj</p>');

  outhtml.add('<p><a href="http://yahoo.co.jp"><u>ONeXg</u></a><br>iURLw肷IEŊJ܂Bj</p>');

  outhtml.add('<p><em></em><br>XNvgȊO̕@ł ̃[h̐ݒEł܂B</p>');

  outhtml.saveToFile('temp.html');


	if (msgBox('ʂHTMLŕ\܂H',4 | 0x20)==6){
		Memo.ShowAsHtml('temp.html'); //HTML[hɂĕ\eXg
	}else{
		Memo.text=outhtml.text;
		Memo.ShowAsText();
	}

  

